<?php

	include "../model/Device.php";
	include "../dao/DeviceDAO.php";
	
	$device = new Device();
	
	$device->setIdApn($_POST['idapn']);
	$device->setIdFeature($_POST['idfeature']);
	$device->setIdDriver($_POST['iddriver']);
	$device->getIdSimCard($_POST["simcard"]);
	$device->setImei($_POST['imei']);
	
	$devicedao = new DeviceDAO();
	$devicedao->insert($device);
	
	
?>